package com.xh.jf_blog.bean;

import com.xh.jf_blog.common.annotation.CreatTime;
import com.xh.jf_blog.common.annotation.CreatUser;
import com.xh.jf_blog.common.annotation.UpdateTime;
import com.xh.jf_blog.common.annotation.UpdateUser;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Userinfo {
    private Integer userinfoId;
    private String username;
    private String password;
    private String nickname;
    private String phone;
    private Integer sex;
    private Integer role;
    private String avatar;
    private String profile;
    private Integer status;
    @CreatTime
    private Date createTime;
    @CreatUser
    private Integer createUser;
    @UpdateTime
    private Date updateTime;
    @UpdateUser
    private Integer updateUser;

    private Integer articleCount;

    private List<ArticleLike> followList;
    private List<ArticleLike> followedList;
}
